const parentCode = 'twoTicketManagement'
export default [{
  path: "/twoTicketManagement",
  meta: {
    title: "两票管理",
    code: parentCode, //来确定是哪个模块，一级菜单的code
  },
  component: (resolve) => require(["@/views/twoTicketManagement"], resolve),
  children: [{
      path: "/",
      redirect: "workTicket",
    },
    {
      path: "workTicket",
      meta: {
        title: "工作票",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "workTicket", //二级菜单的code
      },
      component: (resolve) =>
        require(["@/views/twoTicketManagement/workTicket"], resolve),
      children: [{
          path: "/",
          redirect: "workTicketProcessing",
        },
        {
          path: "workTicketProcessing",
          name: "workTicketProcessing",
          meta: {
            title: "工作票办理",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "workTicket", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/workTicket/workTicketProcessing",
            ], resolve),
        },
        {
          path: "workTicketChange",
          name: "workTicketChange",
          meta: {
            title: "工作票变更",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "workTicket", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/workTicket/workTicketChange",
            ], resolve),
        },
        {
          path: "sampleWorkTicket",
          name: "sampleWorkTicket",
          meta: {
            title: "工作票样票",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "workTicket", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/workTicket/sampleWorkTicket",
            ], resolve),
        },
      ],
    },
    {
      path: "operationTicket",
      meta: {
        title: "操作票",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "operationTicket", //二级菜单的code
      },
      component: (resolve) =>
        require(["@/views/twoTicketManagement/operationTicket"], resolve),
      children: [{
          path: "/",
          redirect: "operationTicketProcessing",
        },
        {
          path: "operationTicketProcessing",
          name: "operationTicketProcessing",
          meta: {
            title: "操作票办理",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "operationTicket", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/operationTicket/operationTicketProcessing",
            ], resolve),
        },
        {
          path: "sampleOperationTicket",
          name: "sampleOperationTicket",
          meta: {
            title: "操作票样票",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "operationTicket", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/operationTicket/sampleOperationTicket",
            ], resolve),
        },
      ],
    },
    {
      path: "twoTicketCheck",
      meta: {
        title: "两票抽查",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "twoTicketCheck", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/twoTicketManagement/twoTicketCheck"], resolve),
      children: [{
        path: "/",
        redirect: "workTicketCheck",
        },
        {
          path: "workTicketCheck",
          name: "workTicketCheck",
          meta: {
            title: "工作票抽查",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "twoTicketCheck", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/twoTicketCheck/workTicketCheck",
            ], resolve),
        },
        {
          path: "operationTicketCheck",
          name: "operationTicketCheck",
          meta: {
            title: "操作票抽查",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "twoTicketCheck", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/twoTicketManagement/twoTicketCheck/operationTicketCheck",
            ], resolve),
        },
      ],
    },
    {
      path: "twoTicketStatistics",
      name: "twoTicketStatistics",
      meta: {
        title: "两票统计",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "twoTicketStatistics", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/twoTicketManagement/twoTicketStatistics"], resolve),
    },
  ],
}, ];